package org.stvd.entities.admin;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import org.stvd.entities.base.BaseEntity;

/**
 * 参数-实体类
 * @author houzx
 */
@Entity
@Table( name ="PARAMS")
public class Params extends BaseEntity{
    
    private static final long serialVersionUID = -7659667650871214920L;
    
    /**
     * 主键ID
     */
    @Id
    @Column(name="param_id", nullable=false)
    private String paramId = ""; 
    
    /**
     * 参数类型 {0:平台参数；1：全局参数；}
     */
    @Column(name = "param_type", nullable = false)
    @NotEmpty(message="参数类型不能为空！")
    private String paramType = "";
    
    /**
     * 参数名称
     */
    @Column(name = "param_name", nullable = false)
    @NotEmpty(message="参数名称不能为空！")
    private String paramName = "";
    
    /**
     * 参数值
     */
    @Column(name = "param_value", nullable = false)
    @NotEmpty(message="参数值不能为空！")
    @Length(max = 200, message = "参数值最大可输入200个字符")
    private String paramValue = "";
    
    /**
     * 参数详细说明
     */
    @Column(name = "param_detail")
    @Length(max = 200, message = "参数详细说明最大可输入200个字符")
    private String paramDetail = "";
    
    /**
     * 系统GUID
     */
    @Column(name = "guid", nullable = false)
    private String guid = "";

	public String getParamId() {
		return paramId;
	}

	public void setParamId(String paramId) {
		this.paramId = paramId;
	}

	public String getParamType() {
		return paramType;
	}

	public void setParamType(String paramType) {
		this.paramType = paramType;
	}

	public String getParamName() {
		return paramName;
	}

	public void setParamName(String paramName) {
		this.paramName = paramName;
	}

	public String getParamValue() {
		return paramValue;
	}

	public void setParamValue(String paramValue) {
		this.paramValue = paramValue;
	}

	public String getParamDetail() {
		return paramDetail;
	}

	public void setParamDetail(String paramDetail) {
		this.paramDetail = paramDetail;
	}

	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}
}
